package com.example.shushiyunsst.fragment.main.mine.child

import android.content.Context
import android.view.View
import com.example.shushiyunsst.R
import com.example.shushiyunsst.fragment.getUserInfo
import com.example.shushiyunsst.fragment.signOut
import com.lxj.xpopup.core.CenterPopupView

class ReSettingSignInPasswordPop(context: Context) : CenterPopupView(context) {

    override fun getImplLayoutId(): Int {
        return R.layout.re_setting_sign_in_password_pop
    }

    override fun onCreate() {
        super.onCreate()
        findViewById<View>(R.id.signInNow)
            .setOnClickListener {
                dismiss()
                signOut()
            }
        findViewById<View>(R.id.dismiss)
            .setOnClickListener {
                dismiss()
                getUserInfo(context)
            }
    }

}